<?php
namespace app\api\controller\v1;

use \app\api\model\Category as Cate;

class Category extends Base
{

    public function index(){

      $cates = new Cate;

      $cates =  $cates->getCates();

      return $this->success($cates);

    }

    public function getCateProducts(){

        $cates =  new  Cate;

        $goods = $cates->getCateProducts();

        return $this->success($goods);
    }
}
